<template>
  <div class="swiperblock">
    <el-carousel trigger="click" arrow="never">
      <el-carousel-item v-for="(item, index) in imglist" :key="index">
        <img :src="item" alt="" />
      </el-carousel-item>
    </el-carousel>
  </div>
</template>

<script>
export default {
  data() {
    return {
      imglist: [
        "https://tenfei03.cfp.cn/creative/vcg/veer/800water/veer-304646717.jpg",
        "https://alifei02.cfp.cn/creative/vcg/veer/800water/veer-159838981.jpg",
        "https://alifei03.cfp.cn/creative/vcg/veer/800water/veer-302552392.jpg",
      ],
    };
  },
};
</script>

<style scoped lang="scss">
.swiperblock {
  background: var(--bg-second);
  box-shadow: var(--box-shadow);
  border-radius: var(--border-radius);
  width: 100%;
  height: 100%;
}
.el-carousel {
  color: #475669;
  font-size: 14px;
  opacity: 0.75;
  margin: 0;
}
.el-carousel__container {
  width: 100%;
  height: 100%;
  .el-carousel__item {
    width: 100%;
    height: 100%;
    img {
      width: 100%;
      height: 100%;
    }
  }
}
.el-carousel__item:nth-child(2n) {
  background-color: #99a9bf;
}

.el-carousel__item:nth-child(2n + 1) {
  background-color: #d3dce6;
}
</style>
